Namespaces

Functions

alert(string $message)

No description

at line 18
string
asset(string $path, bool $local = false)

Retrieves publicly available asset.

at line 18
string
checkboxLabelLeft(string $label, string $name, string $value = "", bool $checked = false, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Generates a div containing an input of type checkbox with the label to the left that is not part of a group.

at line 29
string
checkboxLabelRight(string $label, string $name, string $value = "", bool $checked = false, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Generates a div containing an input of type checkbox with the label to the right that is not part of a group.

at line 72
void
cl(mixed ...$vars)

Prints to console using JavaScript.

at line 33
mixed
config(string $key, mixed $default = null)

Get a configuration value.

at line 48
void
console(string $message, string $level = Logger::INFO, string $background = ConsoleLogger::BG_GREEN, string $text = ConsoleLogger::TEXT_LIGHT_GREY)

No description

at line 39
void
console_alert(string $message)

Generates an alert console message.

at line 56
void
console_critical(string $message)

Generates a critical console message.

at line 68
void
console_debug(string $message)

Generates a debug console message.

at line 80
void
console_emergency(string $message)

Generates an emergency console message.

at line 92
void
console_error(string $message)

Generates an error console message.

at line 104
void
console_info(string $message)

Generates an info console message.

at line 116
void
console_notice(string $message)

Generates a notice console message.

at line 128
void
console_warning(string $message)

Generates a warning console message.

at line 141
critical(string $message)

No description

at line 156
void
csrf()

Inserts csrf token into form.

at line 99
void
dd(mixed ...$vars)

Performs var_dump of parameter and kills the page.

at line 61
debug(string $message)

No description

at line 171
void
dump(mixed ...$vars)

Dumps content but continues execution.

at line 77
string
e(string|null $value)

Escape a string for safe HTML output.

at line 97
string
email(string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders an HTML div element that surrounds an input of type email.

at line 136
emergency(string $message)

No description

at line 186
mixed
env(string $key, mixed $default = null)

Get an environment variable.

at line 110
error(string $message)

No description

at line 201
string
errorBag(ArraySet $errors)

Returns list of errors.

at line 113
void
flashMessage(string $type, string $message)

Adds a session alert message.

at line 125
string
hidden(string $name, mixed $value)

Generates a hidden input element.

at line 163
info(string $message)

No description

at line 216
string
input(string $type, string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Assists in the development of forms input blocks in forms. It accepts parameters for setting attribute tags in the form section. Not to be used for inputs of type "Submit" For submit inputs use the submitBlock or submitTag functions.

at line 190
void
logger(string $message, string $level = Logger::INFO)

Performs operations for adding content to log files.

at line 168
notice(string $message)

No description

at line 231
string
now(string|null $timezone = null, string|null $format = null, string|null $locale = null)

Get the current time as a formatted string using Carbon.

at line 149
string
output(string $name, string $for)

Generates an HTML output element.

at line 220
string
radio(string $label, string $id, string $name, string $value, bool $checked = false, array $inputAttrs = [])

Creates an input element of type radio with an accompanying label element. Compatible with radio button groups.

at line 246
void
redirect(string $location, array $params = [])

Performs redirect operations.

at line 171
string
route(string $path, array $params = [])

Route function for views that supports dot notation and array of parameters.

at line 185
string
select(string $label, string $name, string|int|null $value, array $options, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders a select element with a list of options.

at line 282
string
submit(string $buttonText, array $inputAttrs = [])

Create a input element of type submit.

at line 338
string
submitBlock(string $buttonText, array $inputAttrs = [], array $divAttrs = [])

Generates a div containing an input of type submit.

at line 315
string
tel(string $label, string $name, mixed $value = '', array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Renders an HTML div element that surrounds an input of type tel.

at line 363
string
textarea(string $label, string $name, string|null $value, array $inputAttrs = [], array $divAttrs = [], array $errors = [])

Assists in the development of textarea in forms. It accepts parameters for setting attribute tags in the form section.

at line 401
string
vite(string $asset)

Generate the URL for a Vite-built asset.

at line 213
warning(string $message)

No description

at line 246